package com.zg.api.domain.req;

import com.zg.common.core.req.AddReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/6/16 20:13
 */

@Data
@ApiModel
public class ApiServiceAddReq extends AddReq {

    @ApiModelProperty(value = "服务名称", required = true)
    @NotEmpty(message = "服务名称不能为空")
    private String serviceName;       // 标题

    @ApiModelProperty(value = "服务编号", required = true)
    @NotEmpty(message = "服务编号不能为空")
    private String serviceCode;

    @ApiModelProperty(value = "所属项目", required = true)
    @NotNull(message = "所属项目不能为空")
    private Long projectId;

    private String intro;

    /**
     * IP地址或域名
     */
    @ApiModelProperty(value = "ip地址或域名", required = true)
    private String addr;

    /**
     * 端口
     */
    @ApiModelProperty(value = "端口", required = true)
    private Integer port;
}
